<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>仁爱宠物医院</title>
  <link rel="stylesheet" href="../css/home.css">
  <link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">
  <script src="https://unpkg.com/vue@2/dist/vue.js"></script>
  <script src="https://unpkg.com/element-ui/lib/index.js"></script>
  <script src="http://libs.baidu.com/jquery/2.1.4/jquery.min.js"></script>
  <link href="https://cdn.staticfile.net/twitter-bootstrap/5.1.1/css/bootstrap.min.css" rel="stylesheet">
  <script src="https://cdn.staticfile.net/twitter-bootstrap/5.1.1/js/bootstrap.bundle.min.js"></script>
  <script src="https://www.jq22.com/demo/number202111050044/js/number.js"></script>
  <script src="https://cdn.jsdelivr.net/npm/gsap@3.12.5/dist/gsap.min.js"></script>
</head>
<style>
  #slide {
    width: 100%;
    height: 400px;
    position: relative;
  }

  #slide li {
    list-style: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s;
  }

  #slide li.active {
    opacity: 1;
  }


  #slide1 {
    width: 100%;
    height: 350px;
    position: relative;
  }

  #slide1 li {
    list-style: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s;
  }

  #slide1 li.active {
    opacity: 1;
  }
</style>

<body>
  <div id="service">
    <!-- 页面头部 -->
    <header>
      <div style="display: flex;">
        <div class="container">
          <div class="row">
            <div class="col-lg-1" style="text-align: right;">
              <img src="../img/cat-foot.svg" height="40px" width="40px" />
            </div>
            <div class="col-lg-2" style="padding: 0;text-align: left;color: #ff5b2e;padding-top: 3px;">
              <h3 style="font-weight: 700; font-family: 得意黑;">仁爱宠物医院</h3>
            </div>
            <div class="col-lg-7">
              <ul style="font-family: 得意黑;">
                <li class="li_header"><a class="a_header" href="./home.html">首页</a></li>
                <li class="li_header"><a class="a_header" href="./about.html">关于仁爱</a></li>
                <li class="li_header"><a class="a_header" href="./service.html">服务项目</a></li>
                <li class="li_header"><a class="a_header" href="./keep_a_pet.html">养宠小百科</a></li>
                <li class="li_header"><a class="a_header" href="./join_us.html">加入我们</a></li>
                <li class="li_header"><a class="a_header" href="./shop.html">线上商店</a></li>
                <li class="li_header"><a class="a_header" href="./message.html">在线留言</a></li>
                <li id="li_1" class="li_header"><a class="a_header" href="./login.html">登录/注册</a></li>
                <li id="li_2" class="li_header"><a class="a_header" href="./userinfo.html">个人中心</a></li>
              </ul>
            </div>
            <div class="col-lg-2" style="text-align: left;overflow: hidden; position: relative;">
              <input type="text" style="margin-top: 8px;" id="name">
              <img onclick="search()" src="../img/search.png" alt="" width="23px" height="23px"
                style="position: absolute; top: 11px; left: 135px; cursor: pointer;">
            </div>
          </div>
        </div>
      </div>
    </header>
    <!-- 一 -->
    <section style="position: relative;">
      <div>
        <ul id="slide">
          <li class="active"><img src="../img/service_banner1.jfif" width="100%" height="100%" alt=""></li>
          <li><img src="../img/serivce_banner2.jpg" width="100%" height="100%" alt=""></li>
          <li><img src="../img/service_banner3.jfif" width="100%" height="100%" alt=""></li>
        </ul>
      </div>
    </section>
    <!-- 二 -->
    <section style="position: relative; padding: 5% 0; overflow: hidden;">
      <div class="container service_two_div_class">
        <div style="display: flex;">
          <div class="home_two_div1_class six_class"
            style="text-align: center; background-color: #fffaeb; padding: 5%; border-radius: 25px; width: 32%; box-shadow: 2px 5px 10px #eee;">
            <img src="../img/service-1.svg" alt="">
            <h3 style="margin-top: 5%;margin-bottom: 7%;">美容</h3>
            <span>宠物美容服务提供全方位的宠物护理，包括洗浴、剪毛、修甲、耳朵清理及皮肤护理等。
              我们专业的美容师团队使用高质量的产品和细心的照料，确保您的宠物不仅外观美丽，同时感觉健康、舒适。</span>
          </div>
          <div class="home_two_div2_class six_class"
            style="text-align: center; background-color: #fffaeb; padding: 5%; border-radius: 25px;margin: 0 2%; width: 32%; box-shadow: 2px 5px 10px #eee;">
            <img src="../img/service-2.svg" alt="">
            <h3 style="margin-top: 5%;margin-bottom: 7%;">登机</h3>
            <span>宠物医院提供专业的宠物寄养服务，为需要临时离开家的家庭提供一个安全、舒适的宠物照顾方案。
              我们的设施完全具备满足各类宠物需求的能力，包括为宠物提供日常喂食、定时散步、健康监测和个性化的关爱与互动。</span>
          </div>
          <div class="home_two_div3_class six_class"
            style="text-align: center; background-color: #fffaeb; padding: 5%; border-radius: 25px; width: 32%; box-shadow: 2px 5px 10px #eee;">
            <img src="../img/service-3.svg" alt="">
            <h3 style="margin-top: 5%;margin-bottom: 7%;">日托</h3>
            <span>宠物医院提供全面的日托服务，为忙碌的宠物主人提供便利。在您工作或处理日常事务时，
              您的宠物可以在我们设施齐全、安全舒适的环境中得到专业的照料。我们的日托服务包括玩耍、散步、社交活动以及必要的健康监护。</span>
          </div>
        </div>
        <div style="display: flex; margin-top: 3%;">
          <div class="home_two_div4_class six_class"
            style="text-align: center; background-color: #fffaeb; padding: 5%; border-radius: 25px; width: 32%; box-shadow: 2px 5px 10px #eee;">
            <img src="../img/service-4.svg" alt="">
            <h3 style="margin-top: 5%;margin-bottom: 7%;">兽医</h3>
            <span>宠物医院的兽医团队由一群经验丰富、专业资质的医生和技术人员组成，致力于提供最优质的宠物医疗服务。
              我们的兽医精通各种常规及紧急宠物医疗程序，包括诊断、治疗、手术和预防保健。</span>
          </div>
          <div class="home_two_div5_class six_class"
            style="text-align: center; background-color: #fffaeb; padding: 5%; border-radius: 25px;margin: 0 2%; width: 32%; box-shadow: 2px 5px 10px #eee;">
            <img src="../img/service-5.svg" alt="">
            <h3 style="margin-top: 5%;margin-bottom: 7%;">接种疫苗</h3>
            <span>
              宠物医院提供全面的疫苗接种服务，旨在保护您的宠物免受各种严重疾病的侵害。
              我们的接种计划遵循最新的动物医疗标准，包括所有必需的核心疫苗和根据宠物的生活方式及环境可能需要的非核心疫苗。</span>
          </div>
          <div class="home_two_div6_class six_class"
            style="text-align: center; background-color: #fffaeb; padding: 5%; border-radius: 25px; width: 32%; box-shadow: 2px 5px 10px #eee;">
            <img src="../img/service-6.svg" alt="">
            <h3 style="margin-top: 5%;margin-bottom: 7%;">急救护理</h3>
            <span>宠物医院的急救护理服务致力于应对宠物突发状况，提供立即和专业的医疗援助。
              我们的急救团队由经验丰富的兽医和技术人员组成，全天候待命，以快速响应宠物的紧急需求。</span>
          </div>
        </div>
      </div>
    </section>
    <!-- 页尾 -->
    <footer style="background-color: #2f2d53;height: 350px; overflow: hidden; padding-top: 5%;">
      <div class="container">
        <div style="display: flex; padding-left: 20%;">
          <div style="width: 35%;">
            <div style="display: flex;">
              <div style="text-align: right;">
                <img src="../img/cat-foot.svg" height="40px" width="40px" />
              </div>
              <div style="padding: 0;text-align: left;color: #ff5b2e;padding-top: 3px;">
                <h3 style="font-weight: 700; font-family: 得意黑;">仁爱宠物医院</h3>
              </div>
            </div>
            <div style="color: #fff; margin-top: 5%;">
              <span>
                宠物护理和兽医服务对于维持<br>我们心爱的动物伴侣的健康和福祉至关重要
              </span>
            </div>
          </div>
          <div style="display: flex; width: 65%;">
            <div style="overflow: hidden; margin-left: 15%;">
              <h4 style="color: #fff;">快速链接</h4><br>
              <h6><a style="color: #fff !important;" href="./about.html">关于我们</a></h6><br>
              <h6><a style="color: #fff !important;" href="./service.html">服务项目</a></h6><br>
              <h6><a style="color: #fff !important;" href="./service.html">线上商店</a></h6>
            </div>
            <div style="overflow: hidden; margin-left: 15%;">
              <h4 style="color: #fff;">法律</h4><br>
              <h6 style="color: #fff;">常见问题</h6><br>
              <h6 style="color: #fff;">条款及细则</h6><br>
              <h6 style="color: #fff;">隐私与政策</h6>
            </div>
          </div>
        </div>
        <span style="color: #fff; display: block; text-align: center; font-size: 14px; margin-top: 2%;">©2024年
          版权所有仁爱宠物医院</span>
      </div>
    </footer>
  </div>
</body>
<script>
  // 数字滚动脚本
  $(window).ready(function () {
    $('.timer').each(count);
    function count(options) {
      var $this = $(this);
      options = $.extend({}, options || {}, $this.data('countToOptions') || {});
      $this.countTo(options);
    }
    $(".math").removeClass("timer");
  })

  let btnThisList1 = document.querySelectorAll('.six_class');
  btnThisList1.forEach(function (item) {
    //鼠标移入
    item.addEventListener('mouseover', function (event) {
      item.style.transform = 'scale(1.1)';
    })
    //鼠标移出
    item.addEventListener('mouseout', function (event) {
      item.style.transform = 'scale(1)';
    })
  })

  const inter2 = new IntersectionObserver(entries => {
    if (entries[0].intersectionRatio <= 0) return
    let t1 = gsap.timeline({ defaults: { repeatDelay: 0.25, duration: 0.5, opacity: 0 } })
    t1.from('.home_two_div1_class', { y: 200, ease: "power1.out", })
    t1.from('.home_two_div2_class', { y: 200, ease: "power1.out", })
    t1.from('.home_two_div3_class', { y: 200, ease: "power1.out", })
    t1.from('.home_two_div4_class', { y: 200, ease: "power1.out", })
    t1.from('.home_two_div5_class', { y: 200, ease: "power1.out", })
    t1.from('.home_two_div6_class', { y: 200, ease: "power1.out", })
  })
  inter2.observe(document.querySelector('.service_two_div_class'))

  // 轮播图
  let slide = document.getElementById('slide');
  let slideList = slide.querySelectorAll('li');
  let node = null;
  let index = 0;
  let timer = setInterval(function () {
    if (node != null) node.className = "";
    index = index >= slideList.length - 1 ? 0 : index + 1;
    slideList[index].className = "active";
    node = slideList[index];
  }, 5000)
</script>
<script>
  // 当页面刚加载完时调用
  window.onload = function () {
    if (localStorage.getItem("userId")) {
      // 说明已经登录
      let li_1 = document.getElementById('li_1');
      li_1.style.display = "none";
      let li_2 = document.getElementById('li_2');
      li_2.style.display = 'block';
    } else {
      //没有登录
      let li_1 = document.getElementById('li_1');
      li_1.style.display = "block";
      let li_2 = document.getElementById('li_2');
      li_2.style.display = 'none';
    }
  }
</script>
<script>
  function search() {
    const name = document.getElementById("name").value;
    localStorage.setItem("name",name);
    window.location.href = './shop.html'
  }
</script>
</html>